//防止头文件被重复调用
#ifndef _BMP_H_
#define _BMP_H_

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/mman.h>


extern int lcdfd; //lcd屏幕的文件描述符
extern int *lcdmem; //lcd屏幕的映射空间


int lcd_init();
void lcd_destory();
int showbmp(char *bmpname,int bmpx,int bmpy,int dx,int dy);
int showbmp_left(char *bmpname,int bmpx,int bmpy,int dx,int dy);
int showbmp_up(char *bmpname,int bmpx,int bmpy,int dx,int dy);
void screen_clear();

#endif